﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="test_datetime_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="stylesheet" href="jscal2.css" />
    <link type="text/css" rel="stylesheet" href="border-radius.css" />
    <link type="text/css" rel="alternate stylesheet" href="win2k.css" />
    <link type="text/css" rel="alternate stylesheet" href="reduce-spacing.css" />
    
    <script type="text/javascript" src="jscal2.js"></script>
    <script type="text/javascript" src="cn.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="ddd"></div>
    <div>
    <input type="text" id="cc" /><button id="f_rangeStart_trigger">...</button>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    
            var LEFT_CAL = Calendar.setup({
            cont: "ddd",
                    weekNumbers: true,
                    selectionType: Calendar.SEL_MULTIPLE,
                    showTime: 12
            })

</script>
<script type="text/javascript">
    new Calendar({
    inputField: "cc",
        dateFormat: "%B %d, %Y",
        trigger: "cc",
        bottomBar: false,
        onSelect: function() {
            var date = Calendar.intToDate(this.selection.get());
            LEFT_CAL.args.min = date;
            LEFT_CAL.redraw();
            this.hide();
        }
    });
    function clearRangeStart() {
        document.getElementById("cc").value = "";
        LEFT_CAL.args.min = null;
        LEFT_CAL.redraw();
    };
                </script>